<div id="content">
<% if(blogs){ %>
<% blogs.forEach(function(blog,index){ %>
        <div id=blogs>
                <h2><a href="/blog/<%= blog.id %>"><%= blog.title %></a></h2>
                <h3>发布者：<%= blog.username %>,发布时间：<%= blog.date %>,id=<%= blog.id %></h3>
        </div>
<% });}else{ %>

        <div id=blogs>
                no content!
        </div>
<% } %>
        <div id=formpost>
                <form action="/post_blog" method="post">
                        <input type=text value="新的主题" name="title" id="title">
                        <textarea  name="content" id="content" cols="5" >内容</textarea>
                        <input type=submit value=提交>
                </form>
        </div>
</div>

